//
//  DetailMode.m
//  PDA巡检
//
//  Created by Vencoo on 14-3-1.
//  Copyright (c) 2014年 Vencoo. All rights reserved.
//

#import "DetailMode.h"

@implementation DetailMode
- (id)initWithDic:(NSDictionary *)dic andTag:(NSUInteger)tag
{
    if (self = [super init])
    {
        NSArray *tagKeys = [NSArray array];
        NSInteger tagNum = 0;
        if (tag >= 100 && tag < 200)
        {
            tagKeys = @[@"eventName",@"eventId",@"eventDate",@"eventtag",@"eventNorm",@"eventNum",@"eventTime",@"undertater",@"host",@"place",@"area",@"registNum",@"VIPRoomNum",@"chairNum",@"towelNum",@"penNum",@"whiteboardNum",@"rostrumNum",@"meetDeskNum",@"flowersNum",@"plateNum",@"diningPlace",@"pantryNum",@"waterNum",@"coffeeNum",@"mineralWaterNum",@"oExplanation",@"completionTime",@"wiredNum",@"wirelessNum",@"completionTime1",@"tag",@"isFinished",@"completionTime2",@"eExplanation",@"waitTime",@"waitFloor",@"parkingNum",@"isCharge",@"sExplanation",@"otherResult"];
            tagNum = 100;
        }
        else if (tag >= 200)
        {
            tagKeys = @[@"regist",@"banner",@"VIPRoom",@"chair",@"towel",@"pen",@"whiteboard",@"rostrum",@"meetDesk",@"signs",@"flowers",@"card",@"plate",@"dining",@"pantry",@"water",@"coffee",@"mineralWater",@"meetPlace",@"cabinetLights",@"illumination",@"backgroundMusic",@"karaOK",@"microphone",@"projectionDevice",@"translation",@"audio",@"multifunction",@"stage",@"carpet",@"placedSeat",@"designedLadder",@"enhancedPolice",@"guardColumn",@"carManagement",@"other"];
            tagNum = 200;
        }
        self.resultStr = dic[tagKeys[tag - tagNum]];
    }
    return self;
}

@end
